package com.woniu.finance.feign;


import com.woniu.book.domain.Booking;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.List;

@FeignClient("book")
public interface BookFeign {
    @RequestMapping("/book/feign/getBookByIds")
    public List<Booking> getBookByIds(@RequestParam("ids") List<Long> ids);

    @RequestMapping("/book/feign/editBookingStatus")
    public Integer editBookingStatus(@RequestParam("bookingId") Long bookingId);

    @RequestMapping("/book/feign/getBookById")
    public Booking getBookById(@RequestParam("bookId") Long bookId);
}
